import request from '@/utils/request'

// 查询建扩辅助列表
export function listExtassist(query) {
  return request({
    url: '/goods/extassist/list',
    method: 'get',
    params: query
  })
}

// 查询建扩辅助详细
export function getExtassist(goodsExtAssistId) {
  return request({
    url: '/goods/extassist/' + goodsExtAssistId,
    method: 'get'
  })
}

// 新增建扩辅助
export function addExtassist(data) {
  return request({
    url: '/goods/extassist',
    method: 'post',
    data: data
  })
}

// 修改建扩辅助
export function updateExtassist(data) {
  return request({
    url: '/goods/extassist',
    method: 'put',
    data: data
  })
}

// 删除建扩辅助
export function delExtassist(goodsExtAssistId) {
  return request({
    url: '/goods/extassist/' + goodsExtAssistId,
    method: 'delete'
  })
}
